import request from '@/utils/request'

// 查询公告通知列表
export function listMessage(query) {
  return request({
    url: '/system/message/list',
    method: 'get',
    params: query
  })
}

// 查询公告通知详细
export function getMessage(id) {
  return request({
    url: '/system/message/' + id,
    method: 'get'
  })
}

// 新增公告通知
export function addMessage(data) {
  return request({
    url: '/system/message',
    method: 'post',
    data: data
  })
}

// 修改公告通知
export function updateMessage(data) {
  return request({
    url: '/system/message',
    method: 'put',
    data: data
  })
}

// 删除公告通知
export function delMessage(id) {
  return request({
    url: '/system/message/' + id,
    method: 'delete'
  })
}

// 订单明细查询
export function orderGsOrderApi(data) {
  return request({
    url: '/system/order/gsOrder',
    method: 'get',
    params: data
  })
}

// 供应商结算汇总
export function providerServiceSearchApi(data) {
  return request({
    url: '/system/ProviderConfig/providerServiceSearch',
    method: 'get',
    params: data
  })
}

// 供应商索赔列表
export function claimListApi(data) {
  return request({
    url: `/system/claim/claimList?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
    method: 'post',
    data: data
  })
}

// 确认回收
export function updateClaimListForZXKhApi(data) {
  return request({
    url: '/system/claim/updateClaimListForZXK',
    method: 'post',
    data: data
  })
}

// 拒绝回单
export function changeOrderApi(data) {
  return request({
    url: '/system/claim',
    method: 'put',
    data: data
  })
}

// 查询供应商索赔列表列表
export function listClaim(query) {
  return request({
    url: '/system/claim/list',
    method: 'get',
    params: query
  })
}

// 查询供应商索赔列表列表
export function providerClaimListApi(query) {
  return request({
    url: '/system/claim/providerClaimList',
    method: 'get',
    params: query
  })
}

// 分单
export function unpackClaimListForZXK(query) {
  return request({
    url: '/system/claim/unpackClaimListForZXK',
    method: 'get',
    params: query
  })
}

// 确认赔付
export function updateClaimListForProviderApi(query) {
  return request({
    url: '/system/claim/updateClaimListForProvider',
    method: 'post',
    data: query
  })
}

// 拒绝赔付
export function cancelClaimListForProviderApi(query) {
  return request({
    url: '/system/claim/cancelClaimListForProvider',
    method: 'post',
    data: query
  })
}






